import http from "../request.js";

let url = "/admin/configuration/";
//
export function deleteConfiguration(data) {
  return http.request({
    url: url + "deleteConfiguration",
    method: "get",
    params: data,
  });
}
export function deleteConfigurationField(data) {
  return http.request({
    url: url + "deleteConfigurationField",
    method: "get",
    params: data,
  });
}

export function selectConfigurationFieldByConfigId(data) {
  return http.request({
    url: url + "selectConfigurationFieldByConfigId",
    method: "get",
    params: data,
  });
}
export function selectConfigurationList(data) {
  return http.request({
    url: url + "selectConfigurationList",
    method: "post",
    data,
  });
}
export function updateConfigurationFieldStatus(data) {
  return http.request({
    url: url + "updateConfigurationFieldStatus",
    method: "get",
    data,
  });
}
export function updateConfigurationStatus(data) {
  return http.request({
    url: url + "updateConfigurationStatus",
    method: "get",
    params: data,
  });
}
//
export function insertConfiguration(data) {
  return http.request({
    url: url + "insertConfiguration",
    method: "post",
    data: data,
  });
}
export function insertConfigurationField(data) {
  return http.request({
    url: url + "insertConfigurationField",
    method: "post",
    data,
  });
}
